﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Windows.Forms;

namespace BPP
{
    public partial class _programm
    {

        public class Reactions
        {


            public string Abbreviation
            {
                get;
                set;
            }
            public string Name
            {
                get;
                set;
            }
            public string Reaction
            {
                get;
                set;
            }
            public string Subsystem
            {
                get;
                set;
            }
            public string EC_Number
            {
                get;
                set;
            }
            public string Reversible
            {
                get;
                set;
            }
            public string Kegg
            {
                get;
                set;
            }

            public static List<object> leftSide = new List<object>();
            public static List<object> rightSide = new List<object>();


            public Reactions(string[] arr)
            {
                Abbreviation = arr[0];
                Name = arr[1];
                Reaction = arr[2];
                Subsystem = arr[3];
                Reversible = arr[4];
                EC_Number = arr[5];
                if (arr.Length > 6)
                    Kegg = arr[6];
            }


            private List<object> SplitToSides(string sides)
            {
                List<object> side = new List<object>();

                string[] metabolSeparators = new string[] { " + " };

                string[] metabolites = sides.Split(metabolSeparators, StringSplitOptions.RemoveEmptyEntries);

                foreach (string str in metabolites)
                {
                    string d = str.Trim();
                    side.Add(d);
                }


                return side;
            }
        }
    }
}
